package io.geekidea.boot.persmanag.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.geekidea.boot.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * PersManag 人员管理实体类
 */
@Data
@NoArgsConstructor
@TableName("tb_persmanag")
@ToString(callSuper = true)
public class PersManag extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;

    @TableField("ubietyzone")
    private Integer ubietyZone;

    @TableField("ubietyshop")
    private Integer ubietyShop;

    @TableField("role")
    private Integer role;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("whetfordden")
    private Boolean whetfordden;

    @TableField("createdBy")
    private String createdBy;

    @TableField("updatedBy")
    private String updatedBy;

    @TableField(exist = false)
    private String areaName;

    @TableField(exist = false)
    private String storeName;

    @TableField(exist = false)
    private String roleName;
}
